import request from '@/utils/request'

// 查询瓶贴标签模板列表
export function listMachineBottleBarcodeTag(query) {
  return request({
    url: '/product/machineBottleBarcodeTag/list',
    method: 'get',
    params: query
  })
}

// 查询瓶贴标签模板详细
export function getMachineBottleBarcodeTag(bottleBarcodeTagTempId) {
  return request({
    url: '/product/machineBottleBarcodeTag/' + bottleBarcodeTagTempId,
    method: 'get'
  })
}

// 新增瓶贴标签模板
export function addMachineBottleBarcodeTag(data) {
  return request({
    url: '/product/machineBottleBarcodeTag',
    method: 'post',
    data: data
  })
}

// 修改瓶贴标签模板
export function updateMachineBottleBarcodeTag(data) {
  return request({
    url: '/product/machineBottleBarcodeTag',
    method: 'put',
    data: data
  })
}

// 删除瓶贴标签模板
export function delMachineBottleBarcodeTag(bottleBarcodeTagTempId) {
  return request({
    url: '/product/machineBottleBarcodeTag/' + bottleBarcodeTagTempId,
    method: 'delete'
  })
}

// 导出瓶贴标签模板
export function exportMachineBottleBarcodeTag(query) {
  return request({
    url: '/product/machineBottleBarcodeTag/export',
    method: 'get',
    params: query
  })
}